// 保存token
function setToken(key="token",value){
    window.localStorage.setItem(key, value)
}

// 获取token
function getToken(name="token"){
    return window.localStorage.getItem(name)
}

// 删除token
function removeToken(key="token"){
    window.localStorage.removeItem(key)
}

export {setToken, getToken, removeToken}